/// 用户数据模型
class UserDataModel {
  final String userId;
  final String account;
  final String password;
  final String userName;
  final String signature;
  final String avatar;

  const UserDataModel({
    required this.userId,
    required this.account,
    required this.password,
    required this.userName,
    required this.signature,
    required this.avatar,
  });

  /// 复制并更新字段
  UserDataModel copyWith({
    String? userId,
    String? account,
    String? password,
    String? userName,
    String? signature,
    String? avatar,
  }) {
    return UserDataModel(
      userId: userId ?? this.userId,
      account: account ?? this.account,
      password: password ?? this.password,
      userName: userName ?? this.userName,
      signature: signature ?? this.signature,
      avatar: avatar ?? this.avatar,
    );
  }
}
